<template>
  <div class="warpper">
    <div class="loginfrom">
      <h3>后台管理系统登录</h3>
      <el-form ref="form" :model="form">
        <el-form-item>
          <el-input
            prefix-icon="el-icon-user-solid"
            v-model="form.username"
            placeholder="请输入用户名"
          ></el-input>
        </el-form-item>
        <el-form-item>
          <el-input
            placeholder="请输入密码"
            type="password"
            show-password
            prefix-icon="el-icon-lock"
            v-model="form.password"
          ></el-input>
        </el-form-item>
        <el-form-item>
          <el-row type="flex" class="row-bg" justify="space-between">
            <el-col :span="15">
              <mu-checkbox
                label="该平台由管理员登录"
                v-model="form.isAgree"
              ></mu-checkbox>
            </el-col>
            <el-col :span="5">
              <el-link type="primary">忘记密码</el-link>
            </el-col>
          </el-row>
        </el-form-item>
        <el-form-item>
          <mu-flex justify-content="center" align-items="center">
            <mu-button round full-width color="#5166fc" @click="onSubmitForm"
              >登录</mu-button
            >
          </mu-flex>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script>
export default {
  props: {},
  components: {},
  data() {
    return {
      form: {
        username: "",
        password: "",
        isAgree: false,
      },
    };
  },
  methods: {
    onSubmitForm() {
      if (this.form.isAgree) {
      } else {
      }
    },
  },
  mounted() {},
  watch: {},
  computed: {},
  filters: {},
};
</script>
<style lang="scss" scoped>
.warpper {
  background-color: #1d2d36;
  height: 100%;

  .loginfrom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    background-color: #fff;
    border-radius: 8px;
    .el-form {
      width: 80%;
    }
    h3 {
      margin-top: 30px;
      margin-bottom: 50px;
      color: #ccc;
      font-size: 26px;
    }
  }
}
</style>
